package com.littleHan.brushQuestions.web.start.service;

import com.littleHan.brushQuestions.exception.FailedToInsertException;
import com.littleHan.brushQuestions.web.start.pojo.GeneralUser;

public interface RegisterService {

    /**
     * 普通用户注册
     *
     * @param generalUser 普通用户实例
     */
    void generalUserRegister(GeneralUser generalUser) throws FailedToInsertException;


    /**
     * 检测用户名是否被注册
     *
     * @param username 用户名
     * @return
     */
    boolean checkUsername(String username);

    /**
     * 检测昵称是否被注册
     * @param nickName 昵称
     */
    boolean checkNickName(String nickName);
}
